// build svelte with webapck in dev mode
module.exports = {
  mode: "development",
  entry: {
    app: ["./src/main.js"],
  },
  output: {
    path: path.resolve(__dirname, "public"),
    filename: "[name].bundle.js",
  },
  module: {
    rules: [
      {
        test: /\.svelte$/,
        use: {
          loader: "svelte-loader",
          options: {
            emitCss: true,
            hotReload: true,
          },
        },
      },
    ],
  },
};
